<h2>Amigos en</h2>
<fieldset>
	<legend>
		<%= @list.name %>
	</legend>
	<% if @friendlist and not @friendlist.empty?%>
	<table class="users" border="0" cellpadding="5" cellspacing="1">
		<tr class="header">
			<th>Expression</th><th>Facebook</th><th>Twitter</th><th>LinkedIn</th>
		</tr>
		<%  @friendlist.each do |friend| %>
		<tr class="<%= cycle('odd', 'even') %>">
			<td><%= friend.first_name+" "+ friend.last_name %></td>
			<%if (friend.facebook_id.present?)%>
			<td align="center"><%= image_tag "fb_icon.jpg" %></td>
			<%else%>
			<td></td>
			<%end%>
			<%if friend.twitter_id.present?%>
			<td align="center"><%= image_tag "tt_icon.png" %></td>
			<%else%>
			<td></td>
			<%end%>
			<%if friend.linkedin_id.present?%>
			<td align="center"><%= image_tag "li_icon.png" %></td>
			<%else%>
			<td></td>
			<%end%>
		</tr>
		<% end %>
	</table>

	<% end %>
	<p>
		<%= link_to "Editar lista", edit_list_path %>||
		<%= link_to "Regresar a listas", lists_path %>
	</p>
</fieldset>